package com.zt.rongda.order.model;

import com.zt.rongda.util.JSONUtil;
import com.zt.system.model.Entity;

import java.io.Serializable;
import java.util.Date;

import net.sf.json.JSONObject;

public class Order extends Entity implements Serializable {
    
    private String orderId;

    private String orderType;

    private String customerId;

    private Double amount;

    private String description;

    private String recordUserId;

    private Date recordTime;

    private String status;

    private Date finishTime;

    private static final long serialVersionUID = 1L;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRecordUserId() {
        return recordUserId;
    }

    public void setRecordUserId(String recordUserId) {
        this.recordUserId = recordUserId;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }
    
    public JSONObject toJSONObject(){
        return JSONObject.fromObject(this, JSONUtil.getJsonConfig());
    }
}